import request from '@/utils/request'
import { getToken } from "@/utils/auth";


export function askQuestion(data) {
  return request({
    url: '/deepseeks/ask',
    method: 'post',
    data
  })
}

// 流式回答

export function streamChat(prompt) {
  return new EventSource(`/deepseeks/chat?prompt=${encodeURIComponent(prompt)}`)
}